package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.WorkflowconfigurationMapper;
import com.scheduling.system.domain.Workflowconfiguration;
import com.scheduling.system.service.IWorkflowconfigurationService;

/**
 * 工作流程配置Service业务层处理
 * 
 * @author mj
 * @date 2025-05-07
 */
@Service
public class WorkflowconfigurationServiceImpl implements IWorkflowconfigurationService 
{
    @Autowired
    private WorkflowconfigurationMapper workflowconfigurationMapper;

    /**
     * 查询工作流程配置
     * 
     * @param id 工作流程配置主键
     * @return 工作流程配置
     */
    @Override
    public Workflowconfiguration selectWorkflowconfigurationById(Long id)
    {
        return workflowconfigurationMapper.selectWorkflowconfigurationById(id);
    }

    /**
     * 查询工作流程配置列表
     * 
     * @param workflowconfiguration 工作流程配置
     * @return 工作流程配置
     */
    @Override
    public List<Workflowconfiguration> selectWorkflowconfigurationList(Workflowconfiguration workflowconfiguration)
    {
        return workflowconfigurationMapper.selectWorkflowconfigurationList(workflowconfiguration);
    }

    /**
     * 新增工作流程配置
     * 
     * @param workflowconfiguration 工作流程配置
     * @return 结果
     */
    @Override
    public int insertWorkflowconfiguration(Workflowconfiguration workflowconfiguration)
    {
        return workflowconfigurationMapper.insertWorkflowconfiguration(workflowconfiguration);
    }

    /**
     * 修改工作流程配置
     * 
     * @param workflowconfiguration 工作流程配置
     * @return 结果
     */
    @Override
    public int updateWorkflowconfiguration(Workflowconfiguration workflowconfiguration)
    {
        return workflowconfigurationMapper.updateWorkflowconfiguration(workflowconfiguration);
    }

    /**
     * 批量删除工作流程配置
     * 
     * @param ids 需要删除的工作流程配置主键
     * @return 结果
     */
    @Override
    public int deleteWorkflowconfigurationByIds(Long[] ids)
    {
        return workflowconfigurationMapper.deleteWorkflowconfigurationByIds(ids);
    }

    /**
     * 删除工作流程配置信息
     * 
     * @param id 工作流程配置主键
     * @return 结果
     */
    @Override
    public int deleteWorkflowconfigurationById(Long id)
    {
        return workflowconfigurationMapper.deleteWorkflowconfigurationById(id);
    }
}
